cmake_minimum_required(VERSION 3.5.1)

include_directories("src")

add_library( roadengine

src/ODGlobal.cpp
src/WorldEntityAxis.cpp
src/WorldEntityManager.cpp
src/WorldException.cpp

src/drivers/WorldEntityChangeset.cpp
src/drivers/WorldEntityManagerDriverFile.cpp
src/drivers/WorldEntityManagerDriver.cpp

src/entities/WorldBridge.cpp
src/entities/WorldEntityPart.cpp
src/entities/WorldRoad.cpp
src/entities/WorldConnectable.cpp
src/entities/WorldEntityProperty.cpp
src/entities/WorldRoadObject.cpp
src/entities/WorldController.cpp
src/entities/WorldJunction.cpp
src/entities/WorldRoadObjectParts.cpp
src/entities/WorldControllerParts.cpp
src/entities/WorldJunctionGroup.cpp
src/entities/WorldRoadParts.cpp
src/entities/WorldEntity.cpp
src/entities/WorldJunctionGroupParts.cpp
src/entities/WorldSignal.cpp
src/entities/WorldEntityHeader.cpp
src/entities/WorldJunctionParts.cpp
src/entities/WorldSignalParts.cpp
src/entities/WorldEntityMeta.cpp
src/entities/WorldLaneValidity.cpp
src/entities/WorldTunnel.cpp

src/geom/FOpenDriveImporter.cpp
src/geom/ODRoadGeom.cpp
src/geom/RoadGeom.cpp
src/geom/ODRoadAPI.cpp
src/geom/RoadBuilder.cpp
src/geom/RoadUtil.cpp

src/iterators/WorldArcIterator.cpp
src/iterators/WorldHermiteIterator.cpp
src/iterators/WorldSpiralIterator.cpp

src/refline/WorldRefLineBuilder.cpp
src/refline/WorldRefLineGraph.cpp
src/refline/WorldRefLineSpline.cpp

src/spiral/odrSpiral.c

src/pugixml/pugixml.cpp



)

target_link_libraries( roadengine
common
)



install(TARGETS  roadengine
    EXPORT  apollo-export
    LIBRARY DESTINATION lib
    ARCHIVE DESTINATION lib
    RUNTIME DESTINATION bin
    INCLUDES DESTINATION .
)